package com.csdj.controller;

import com.csdj.service.AccountService;
import com.csdj.utils.ResultInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class AccountController {

    @Resource
    private AccountService accountService;

    @RequestMapping("/account")
    @ResponseBody
    public ResultInfo transTo(Integer inId,Integer outId,Double money){
        ResultInfo resultInfo = accountService.transTo(inId, outId, money);

        return resultInfo;
    }

}
